package entity;

import java.io.Serializable;
import java.util.Date;

public class Users implements Serializable{
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private Long id;           	//员工编号
	private String username;	//员工用户名
	private String password;	//登录密码
	private Byte sex;			//性别
	private Date birthday;		//生日
	private Date createtime;	//创建时间
	private Byte isadmin;		//是否为管理员
	private String content;		//人员简介
	private int age;			//年龄
	private Byte isLock;
	private String position;
	private String mobile;		//手机号
	private String email;
	private String idCard;
	private String strBirth; 	//string类型的日期格式
	
	public Long getId() {
		return id;
	}
	public void setId(Long id) {
		this.id = id;
	}
	public String getUsername() {
		return username;
	}
	public void setUsername(String username) {
		this.username = username;
	}
	public String getPassword() {
		return password;
	}
	public void setPassword(String password) {
		this.password = password;
	}
	public Byte getSex() {
		return sex;
	}
	public void setSex(Byte sex) {
		this.sex = sex;
	}
	public Date getBirthday() {
		return birthday;
	}
	public void setBirthday(Date birthday) {
		this.birthday = birthday;
	}
	public Date getCreatetime() {
		return createtime;
	}
	public void setCreatetime(Date createtime) {
		this.createtime = createtime;
	}
	public Byte getIsadmin() {
		return isadmin;
	}
	public void setIsadmin(Byte isadmin) {
		this.isadmin = isadmin;
	}
	public String getContent() {
		return content;
	}
	public void setContent(String content) {
		this.content = content;
	}
	@Override
	public String toString() {
		return "staff [Staff_Num=" + id + ", Key="+ password + ", Name=" + username +  ", Sex=" + sex + 
				", ID_Card=" + idCard + ", Age=" + age + ", Position=" + position + ", Mobile=" + mobile + 
				", E-mail=" + email + ", Administrator=" + isadmin + ", Lock=" + isLock
				+ ", Birthday=" + birthday + ", Content=" + content + "]";
	}
	public int getAge() {
		return age;
	}
	public void setAge(int age) {
		this.age = age;
	}
	public Byte getIsLock() {
		return isLock;
	}
	public void setIsLock(Byte isLock) {
		this.isLock = isLock;
	}
	public String getPosition() {
		return position;
	}
	public void setPosition(String position) {
		this.position = position;
	}
	public String getMobile() {
		return mobile;
	}
	public void setMobile(String mobile) {
		this.mobile = mobile;
	}
	public String getEmail() {
		return email;
	}
	public void setEmail(String email) {
		this.email = email;
	}
	public String getIdCard() {
		return idCard;
	}
	public void setIdCard(String idCard) {
		this.idCard = idCard;
	}
	public String getStrBirth() {
		return strBirth;
	}
	public void setStrBirth(String strBirth) {
		this.strBirth = strBirth;
	}

}
